package com.lichuang.fruitvarietysm.goods.service.impl;

import com.lichuang.fruitvarietysm.goods.entity.GoodsEvaluate;
import com.lichuang.fruitvarietysm.goods.mapper.GoodsEvaluateMapper;
import com.lichuang.fruitvarietysm.goods.service.IGoodsEvaluateService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lichuang.fruitvarietysm.goods.vo.EvaluateAndAppend;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品评价表 服务实现类
 * </p>
 *
 * @author shuaihang
 * @since 2019-06-16
 */
@Service
public class GoodsEvaluateServiceImpl extends ServiceImpl<GoodsEvaluateMapper, GoodsEvaluate> implements IGoodsEvaluateService {

    @Autowired
    GoodsEvaluateMapper goodsEvaluateMapper;

    @Override
    public int getOrderSkuId(Long order_no) {
        return goodsEvaluateMapper.getOrderSkuId(order_no);
    }

    @Override
    public String getSkuValue(Integer sku_id) {
        return goodsEvaluateMapper.getSkuValue(sku_id);
    }

    @Override
    public String getUserName(Integer user_id) {
        return goodsEvaluateMapper.getUserName(user_id);
    }

    @Override
    public List<EvaluateAndAppend> getEvaluateAppend(Integer goods_id) {
        return goodsEvaluateMapper.getEvaluateAppend(goods_id);
    }
}
